<form action="{#root#}/admin_news/save/{$news.id}" method="post">

	<input type="submit" class="right" value="Sačuvaj" />
	{include file="admin/translate.html" object=$news entity="news"}
	
	{include file="admin/session_message.html" class="right"}
	
	<h1>
		{if $news.id}
			Izmena Vesti
		{else}
			Nova Vest
		{/if}
	</h1>

	<label for="title">Naslov:</label>
	<input type="text" name="data[title]" id="title" value="{$news.title}" size="50" />
	
	<label for="date">Datum:</label>
	<input type="text" name="data[date]" id="date" value="{$news.date|date_format:'%Y-%m-%d'}" size="10" />
	
	<br clear="all" />
	<textarea class="editor" name="data[body]" id="body" rows="10" cols="50">{$news.body}</textarea>
	
</form>
{include file="admin/_editor.html" element="body"}
<script type="text/javascript">
{literal}
	$("#date").datepicker({
		dateFormat: "yy-mm-dd"
	});
{/literal}
</script>